//
//  KindCollectionViewCell.m
//  FNMenu
//
//  Created by 航汇聚科技 on 2018/9/6.
//  Copyright © 2018年 Yi Zhou. All rights reserved.
//

#import "KindCollectionViewCell.h"
#import "NSDictionary+Safety.h"
@interface KindCollectionViewCell ()
@end

@implementation KindCollectionViewCell

- (void)layoutSubviews {
    [super layoutSubviews];
    self.kindBtn.layer.borderWidth = 0.3;
    self.kindBtn.layer.borderColor = [UIColor colorWithRed:252./255. green:150./255. blue:95./255. alpha:1].CGColor;
    self.kindBtn.layer.cornerRadius = 15;
    self.kindBtn.userInteractionEnabled = NO;
}

- (void)setKindInfo:(NSDictionary *)kindInfo {
    _kindInfo = kindInfo;
    
    [self.kindBtn setTitle:[kindInfo safeObjectForKey:@"name"] forState:UIControlStateNormal];
    self.kindBtn.tag = (1000 + [[kindInfo safeObjectForKey:@"id"] integerValue]);
}

@end
